From f576002e9e980462589561c73c188707f87a0f43 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Sun, 29 Oct 2017 20:10:44 +0100 Subject: [PATCH] widget: Improve get_request_mode vfunc docs --- gtk/gtkwidget.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index 46317aca85..1fa9fbcc3d 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -174,13 +174,12 @@ struct _GtkWidget * #GtkWidgetClass.get_preferred_width() called and then * #GtkWidgetClass.get_preferred_height_for_width(). * %GTK_SIZE_REQUEST_CONSTANT_SIZE disables any height-for-width or - * width-for-height geometry management for a said widget and is the + * width-for-height geometry management for said widget and is the * default return. - * It’s important to note (as described below) that any widget + * It’s important to note that any widget * which trades height-for-width or width-for-height must respond properly - * to both of the virtual methods #GtkWidgetClass.get_preferred_height_for_width() - * and #GtkWidgetClass.get_preferred_width_for_height() since it might be - * queried in either #GtkSizeRequestMode by its parent container. + * to a for_size value >= -1 passed to #GtkWidgetClass.measure, for both + * possible orientations. * @measure: This is called by containers to obtain the minimum and natural * size of the widget. Depending on the orientation parameter, the passed * for_size can be interpreted as width or height. A widget will never be -- 2.30.2